﻿@model TaoNiuOA.Models.User
@{
    ViewBag.Title = "员工详细信息";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";

    var userInfo = Model.GetUserInfo();
}
<fieldset>
    <legend>员工详细信息</legend>
    <br />
    <table>
        <tr>
            <td>
                姓名
            </td>
            <td>
                @userInfo.Name
            </td>
        </tr>
        <tr>
            <td>
                用户名
            </td>
            <td>
                @Html.DisplayFor(model => model.UserName)
            </td>
        </tr>
        <tr>
            <td>
                邮箱
            </td>
            <td>
                @Html.DisplayFor(model => model.Email)
            </td>
        </tr>
        <tr>
            <td>
                部门
            </td>
            <td>
                @Html.DisplayFor(model => model.GetDepartment().Name)
            </td>
        </tr>
        <tr>
            <td>
                职位
            </td>
            <td>
                @Html.DisplayFor(model => model.GetUserGroup().GroupName)
            </td>
        </tr>
        <tr>
            <td>
                性别
            </td>
            <td>
                @Model.GetUserInfo().ShowSex()
            </td>
        </tr>
        <tr>
            <td>
                生日
            </td>
            <td>
                @userInfo.Birthday
            </td>
        </tr>
        <tr>
            <td>
                电话
            </td>
            <td>
                @userInfo.Tel
            </td>
        </tr>
        <tr>
            <td>
                手机
            </td>
            <td>
                @userInfo.Mobile
            </td>
        </tr>
        <tr>
            <td>
                QQ
            </td>
            <td>
                @userInfo.QQ
            </td>
        </tr>
        <tr>
            <td>
                MSN
            </td>
            <td>
                @userInfo.Msn
            </td>
        </tr>
        <tr>
            <td>
                开户银行
            </td>
            <td>
                @userInfo.BankName
            </td>
        </tr>
        <tr>
            <td>
                银行帐号
            </td>
            <td>
                @userInfo.BankAccount
            </td>
        </tr>
        <tr>
            <td>
                地址
            </td>
            <td>
                @userInfo.Address
            </td>
        </tr>
        <tr>
            <td>
                邮编
            </td>
            <td>
                @userInfo.Postcode
            </td>
        </tr>
        <tr>
            <td>
                注册时间
            </td>
            <td>
                @Html.DisplayFor(model => model.RegTime)
            </td>
        </tr>
        <tr>
            <td>
                最后登录
            </td>
            <td>
                @Html.DisplayFor(model => model.LastActivityTime)
            </td>
        </tr>
        <tr>
            <td>
                帐号状态
            </td>
            <td>
                @Model.ShowStatus()
            </td>
        </tr>
    </table>
</fieldset>
<p>
    @Html.ActionLink("编辑", "Edit", new { id = Model.UserID })
    | <a href="javascript:history.back(-1);">返回上一页</a>
</p>
